$(function(){
	
	$('.banner').slide({
		titCell:'.hd ul',
		mainCell:'.bd ul',
		autoPage:true,
		autoPlay:true,
		effect:'left',
		prevCell:".banner_prev",
		nextCell:".banner_next",
		trigger:"click",
		delayTime:1000,
		interTime: 2500,
	});
	
	$(".l_inews").slide({
		vis:2,
		mainCell:".bd",
		effect:"leftLoop",
		prevCell:'.inews_prve',
		nextCell:'.inews_next',
	});
	

	$('.jpro').slide({
		mainCell:'.bd ul',
		effect:'left',
		prevCell:".pro_prev",
		nextCell:".pro_next",
	})
	
	
	$('.search_btn').on('click',function(){
		$('.head_form').fadeToggle();
	})
	

	$("[data-fancybox]").fancybox({
		buttons: [
			"zoom",
			"download",
			"close"
		],
		animationEffect: "fade",
	});
	
	
	
	$('.det h2').on('click',function(){
		let $h2=$(this);
		$h2.toggleClass('on')
		let $txt=$h2.next();
		$txt.slideToggle();
	})
	
	var swiper = new Swiper('.jpro .swiper-container', {
	  direction: 'vertical',
	  slidesPerView: 'auto',
	  freeMode: true,
	  scrollbar: {
		el: '.swiper-scrollbar',
	  },
	  mousewheel: true,
	});
	  
	
})